import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

// 配置 ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// 全局组件
import qfForm from '@/components/qf-form/Index.vue';
import qfTable from '@/components/qf-table/Index.vue';
import qfCard from '@/components/qf-card/Index.vue';
// 配置 全局初始样式
import '@/assets/css/reset.scss';

// 全局混入
import '@/utils/mixins';
Vue.use(function () {
  Vue.component('qfForm', qfForm);
  Vue.component('qfTable', qfTable);
  Vue.component('qfCard', qfCard);
});

Vue.use(ElementUI);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app');
